<template>
  <div class="navbar">
    <van-nav-bar
      :title="title"
      left-text="返回"
      right-text="按钮"
      left-arrow
      @click-left="onClickLeft"
    />
  </div>
</template>

<script>

export default {
  name: 'Navbar',
  computed: {
    title() {
      return this.$route.meta.title || '商城'
    },
  },
  methods: {
    onClickLeft() {
      this.$router.back()
    },
  },
}
</script>

<style>

</style>
